package com.yootk.config;

import com.yootk.vo.Emp;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class EmpConfig {

//    @Scope("prototype")     // 使用原型结构，回调无效
    @Bean
    public Emp emp() {
        Emp emp = new Emp();
        emp.setEname("李兴华");
        emp.setSalary(-33.33);  // 工资不合理
        return emp;
    }
}
